package com.common.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzl
 * @since 2022-09-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_sendmsg_business")
@ApiModel(value = "SendmsgBusiness对象", description = "")
public class SendmsgBusiness implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("员工id 发出信息的人")
    private String userId;

    @ApiModelProperty("接收人的id  用户的id")
    @TableField(value = "b_id")
    private String bid;

    @ApiModelProperty("发布的内容")
    private String msg;

    @ApiModelProperty("是否已读 0表示未读 1表示已读")
    private Integer start;
    @TableLogic
    @ApiModelProperty("逻辑删除 0表示未删除 1表示已删除")
    private Integer isDeleted;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMt+8")
    @ApiModelProperty("发送信息时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
}
